package defpackage; import defpackage.atp; /* renamed from: ush reason: default package */ public final class ush { private String aRQ; private String aSj; private apl brt; protected bbo brv; protected tqm vIl; protected twl vMc; protected usg vMd; protected ush vMe; protected usj vMf; protected usl vMg; protected usn vMh; protected usk vMi; public ush(tqm tqm, apl apl, bbo bbo) { S(tqm); this.brv = bbo; this.brt = apl; this.aRQ = "p"; this.aSj = "grpSp"; } public ush(tqm tqm, apl apl, bbo bbo, String str, String str2) { S(tqm); this.brv = bbo; this.brt = apl; this.aRQ = str; this.aSj = str2; } private void a(tqm tqm, coj coj) { if (this.vMf == null) { this.vMf = new usj(tqm, this.brv); } else { this.vMf.S(tqm); } this.vMf.a(coj); } public final void S(tqm tqm) { this.vIl = tqm; this.vMc = twl.U(tqm.Jy()); } public final void a(coj coj) { arf Wm; atp.c Wq; coj.N(this.aRQ, this.aSj); coj.N("p", "nvGrpSpPr"); atp p = atp.p(this.vIl.fpr()); bag.a(coj, p.VT(), this.brv, "p", "cNvPr"); coj.N("p", "cNvGrpSpPr"); if (p.Wr() && (Wq = p.Wq()) != null) { coj.N("a", "grpSpLocks"); if (Wq.WB()) { coj.i("noMove", Wq.WA()); } if (Wq.WD()) { coj.i("noResize", Wq.WC()); } if (Wq.WF()) { coj.i("noRot", Wq.WE()); } if (Wq.Wx()) { coj.i("noSelect", Wq.Ww()); } if (Wq.Wv()) { coj.i("noGrp", Wq.Wu()); } if (Wq.WT()) { coj.i("noUngrp", Wq.WS()); } if (Wq.Wz()) { coj.i("noChangeAspect", Wq.Wy()); } coj.O("a", "grpSpLocks"); } coj.O("p", "cNvGrpSpPr"); usi.a(coj, this.vMc, this.brv); coj.O("p", "nvGrpSpPr"); bai bai = new bai(p, this.brv, "p", "grpSpPr"); if (!bai.bbY.ql()) { coj.N(bai.aRQ, bai.aSj); coj.N("a", "xfrm"); coj.O("a", "xfrm"); } else { atq VV = bai.bbY.VV(); coj.N(bai.aRQ, bai.aSj); if (VV.WY()) { coj.J("bwMode", bbp.bqF.get(Integer.valueOf(VV.WX()))); } if (VV.Pi() && (Wm = bai.bbY.Wm()) != null) { coj.N("a", "xfrm"); ark WZ = bai.bbY.VV().WZ(); if (WZ.Mf()) { coj.r("rot", WZ.Me()); } if (WZ.Mb()) { coj.i("flipH", WZ.Ma()); } if (WZ.Md()) { coj.i("flipV", WZ.Mc()); } if (WZ.Mj()) { baz.a(coj, WZ.Mi(), "a", "off"); } if (WZ.Mh()) { bba.a(coj, WZ.Mg(), "a", "ext"); } if (Wm.LH()) { baz.a(coj, Wm.LG(), "a", "chOff"); } if (Wm.LF()) { bba.a(coj, Wm.LE(), "a", "chExt"); } coj.O("a", "xfrm"); } if (VV.Kc()) { baq.a(coj, VV.KS(), bai.brv); } if (VV.ys()) { bam.a(coj, VV.Xg(), bai.brv); } if (VV.Xj()) { new bax(VV.Xi()).a(coj); } } coj.O(bai.aRQ, bai.aSj); int Kb = this.vIl.Kb(); for (int i = 0; i < Kb; i++) { tqm ajw = this.vIl.ajw(i); if (twl.U(ajw.Jy()).fyv()) { if (this.vMi == null) { this.vMi = new usk(ajw, this.brt, this.brv); } else { this.vMi.S(ajw); } usk usk = this.vMi; coj.N("mc", "AlternateContent"); coj.M("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); coj.N("mc", "Choice"); coj.M("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); coj.J("Requires", "p14"); coj.N("p", "contentPart"); coj.h("p14", "bwMode", "auto"); usk.brv.g(coj, usk.vMl.fpC()); coj.N("p14", "nvContentPartPr"); bag.a(coj, usk.vGC.VT(), usk.brv, "p14", "cNvPr"); coj.N("p14", "cNvContentPartPr"); coj.O("p14", "cNvContentPartPr"); coj.N("p14", "nvPr"); coj.O("p14", "nvPr"); coj.O("p14", "nvContentPartPr"); if (usk.vGC.ql() && usk.vGC.VV().Pi()) { bbb.a(coj, usk.vGC.VV().WZ(), "p14", "xfrm"); } coj.O("p", "contentPart"); coj.O("mc", "Choice"); usk.t(coj); coj.O("mc", "AlternateContent"); } else { switch (apl.gF(ajw.uVC)) { case 0: if (this.vMe == null) { this.vMe = new ush(ajw, this.brt, this.brv); } else { this.vMe.S(ajw); } this.vMe.a(coj); continue; case 1: if (!atp.p(ajw.fpr()).Wb().QF().Qr().Mp()) { if (this.vMg == null) { this.vMg = new usl(ajw, this.brv); } else { this.vMg.S(ajw); } this.vMg.a(coj); break; } else { a(ajw, coj); continue; } case 2: a(ajw, coj); continue; case 3: if (this.vMd == null) { this.vMd = new usg(ajw, this.brv); } else { this.vMd.S(ajw); } this.vMd.a(coj); continue; case 4: if (this.vMh == null) { this.vMh = new usn(ajw, this.brt, this.brv); } else { this.vMh.S(ajw); } this.vMh.a(coj); continue; } } } coj.O(this.aRQ, this.aSj); } }